package com.zp.system.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 系统平台字典业务对象
 *
 * @author zhang peng
 * @date 2023-01-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysBaseDictDataBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 标签
     */
    @NotBlank(message = "标签不能为空", groups = {AddGroup.class, EditGroup.class})
    private String label;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String type;

    /**
     * 值
     */
    @NotBlank(message = "值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String value;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sort;

    /**
     * 门诊住院标识
     */
    @NotBlank(message = "门诊住院标识不能为空", groups = {AddGroup.class, EditGroup.class})
    private String outpOrInp;


    /**
     * 备注信息
     */
    private String remark;

    /**
     * 机构id
     */
    private String orgId;

}
